$(document).ready(function(){
    var _self = $('#SELF').val();

    $("#tabs").tabs();

    $('#submit_siteinfo').click(function(){
        $.post(_self,$('#form-1').serialize(),function(data){
            $('#ajax_msg').html(data.info);
            data.status == '0' &&  $('#form-1').reset[0].reset();
        },'json');
    });

    $('.submit_content').click(function(){
        var type = $(this).attr('content_type');
        var oEditor = eval('CKEDITOR.instances.'+type+'_form');
        $.post(_self,{a:'upadte_content',type:type,content:oEditor.getData()},function(data){
            $('#ajax_msg').html(data.info);
        },'json')
    });
});